package com.huangwenshuo.futurestarschoolmanagement.mapper;

import com.huangwenshuo.futurestarschoolmanagement.pojo.po.PermissionsPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.PermissionsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangwenshuo
 * @since 2020-12-26
 */
@Mapper
public interface PermissionsMapper extends BaseMapper<PermissionsPo> {

    List<PermissionsPo> findAll();

    List<PermissionsPo> findPermissionsByUid(int uid);

    PermissionsVo getPermissionByRid(@Param("rid") int rid);
}
